package paths.g0;

import java.awt.Color;
import java.awt.image.BufferedImage;

import javax.imageio.ImageIO;

import paths.IFCPlayer;
import paths.Maps;
import paths.Move;

public class ImageDisplayer implements IFCPlayer {
	private Maps _maps;
	public Color color() throws Exception {
		return Color.red;
	}

	public boolean interactive() throws Exception {
		return false;
	}

	public Move move() throws Exception {
		BufferedImage image = ImageIO.read(_maps.getBackgroundImage());
		return new Move(image, "Image Display");
	}

	public String name() throws Exception {
		return "Image Displayer";
	}

	public void register(Maps __maps) throws Exception {
		_maps = __maps;
	}

}
